package com.shioirikukuri.web.feign;

import com.shioirikukuri.common.web.Result;
import com.shioirikukuri.domain.OperateIntegralVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by  shioirikukuri
 */
@FeignClient(name = "integral-service",path = "/integral",fallback = IntegralFeignFallback.class)
public interface IntegralFeignApi {
    @RequestMapping("/pay")
    Result<Boolean> pay(@RequestBody OperateIntegralVo vo);

    @RequestMapping("/refund")
    Result<String> refund(@RequestBody OperateIntegralVo vo);
}
